//
//  ST_PairsCenterTextCell.swift
//  btvideo
//
//  Created by mac on 2020/1/10.
//  Copyright © 2020 JarvanZhang. All rights reserved.
//

import UIKit
import SnapKit
import SwifterSwift

class ST_PairsCenterTextCell: UITableViewCell {
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.selectionStyle = .none
        contentView.backgroundColor = Color.white
        contentView.addSubview(content_label)
        content_label.snp.makeConstraints { (make) in
            make.edges.equalToSuperview().inset(UIEdgeInsets.init(top: 10, left: 15, bottom: 0, right: 15))
        }
        
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
//        MARK:-Properties
    fileprivate lazy var content_label:UILabel = {
        let control = UILabel.init()
        control.numberOfLines = 0
        return control
    }()

    //    MARK:- Bind Model
    var model = ST_PairsInfoModel(){
        didSet{
            
            if let attr = model.displayValueAttribute{
                content_label.attributedText = attr
            }
            
        }
    }
    
}






class PairsCenterSubTitleCell: UITableViewCell {
    
    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.selectionStyle = .none
        contentView.backgroundColor = Color.white
        contentView.addSubview(content_label)
        content_label.snp.makeConstraints { (make) in
            make.edges.equalToSuperview().inset(UIEdgeInsets.init(top: 20, left: 16, bottom: 0, right: 15))
        }
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
//        MARK:-Properties
    fileprivate lazy var content_label:UILabel = {
        let control = UILabel.init()
        control.numberOfLines = 0
        return control
    }()

    //    MARK:- Bind Model
    var model = ST_PairsInfoModel(){
        didSet{
            
            if let attr = model.displayValueAttribute{
                content_label.attributedText = attr
            }
            
        }
    }
    
}
